package modelLayer;

public class Loan {
	 private String borrowDate;
	 private int period;
	private Customer customer;
	 private ProductForLease prod;
	 private Employee employee;
	 public Loan(String borrowDate, int period, Customer customer,
				ProductForLease prod,Employee employee) {
	
			this.borrowDate = borrowDate;
			this.period = period;
			this.customer = customer;
			this.prod = prod;
			this.employee = employee;
		}
	public String getBorrowDate() {
		return borrowDate;
	}
	public void setBorrowDate(String borrowDate) {
		this.borrowDate = borrowDate;
	}
	public int getPeriod() {
		return period;
	}
	public void setPeriod(int period) {
		this.period = period;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	public ProductForLease getProd() {
		return prod;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	public void setProd(ProductForLease prod) {
		this.prod = prod;
	}
	public String save(){
		return 3+","+ borrowDate+","+period+","+customer.getId()+","+employee.getId()+","+prod.getId()+",";
	}
	 
}
